﻿// -----------------------------------------------------------------------
// <copyright file="ImageFormatElement.cs" company="EPAM Systems">
////Copyright (c) EPAM Systems, 2012. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

namespace MBOP.Configuration.ConfigElements
{
	#region Usings

	using System.Configuration;

	#endregion

	/// <summary>
	/// Provides image format element from config file..
	/// </summary>
	public class ImageFormatElement : ConfigurationElement
	{
		#region Properties

		/// <summary>
		/// Gets or sets the image format mime type.
		/// </summary>
		[ConfigurationProperty("mimeType")]
		public string MimeType
		{
			get
			{
				return (string)this["mimeType"];
			}

			set
			{
				this["mimeType"] = value;
			}
		}

		/// <summary>
		/// Gets or sets the image format name.
		/// </summary>
		[ConfigurationProperty("name")]
		public string Name
		{
			get
			{
				return (string)this["name"];
			}

			set
			{
				this["name"] = value;
			}
		}

		#endregion
	}
}
